set terminal pdf
set output 'result_float.pdf'

file1='./data/output1.dat'
file2='./data/output2.dat'
file4='./data/output4.dat'
file8='./data/output8.dat'
file16='./data/output16.dat'
file32='./data/output32.dat'

set xlabel 'size'
set ylabel 'runtime [usec.]'

set key outside
set grid

#set logscale y
set xrange[-1:1001]

set title 'float'
plot file1 using 1:2 title "1 Thread" with linespoints,\
file2 using 1:2 title "2 Threads" with linespoints,\
file4 using 1:2 title "4 Threads" with linespoints,\
file8 using 1:2 title "8 Threads" with linespoints,\
file16 using 1:2 title "16 Threads" with linespoints,\
file32 using 1:2 lt rgb "#101F10" title "32 Threads" with linespoints

set output 'result_double.pdf'
set title 'double'
plot file1 using 1:3 title "1 Thread" with linespoints,\
file2 using 1:3 title "2 Threads" with linespoints,\
file4 using 1:3 title "4 Threads" with linespoints,\
file8 using 1:3 title "8 Threads" with linespoints,\
file16 using 1:3 title "16 Threads" with linespoints,\
file32 using 1:3 lt rgb "#101F10" title "32 Threads" with linespoints
